package com.jsmile.cloud.tradecenter.api.req.cart;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import com.jsmile.mall.api.to.BaseUpdateTo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2019年04月01日 04:45:35
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ReqUpdateCart extends BaseUpdateTo {

    @ApiModelProperty(value = "店铺id")
    private Long shopId;
    @ApiModelProperty(value = "供应商id")
    private Long supplyId;
    @ApiModelProperty(value = "活动id")
    private Long activityId;
    @ApiModelProperty(value = "sku_id")
    @NotNull(message = "skuid不能为空")
    private Long skuId;
    @ApiModelProperty(value = "spuId")
    @NotNull(message = "spuId不能为空")
    private Long spuId;
    @ApiModelProperty(value = "老的cartId")
    @NotNull(message = "老的cartId不能为空")
    private Long oldCartId;
    @ApiModelProperty(value = "数量")
    @Min(1)
    @Max(10000)
    @NotNull(message = "商品数量不能为空")
    private Integer skuNumber;
    @ApiModelProperty(value = "配送方式 1自提 2快递")
    @NotNull(message = "配送方式不能为空")
    private Integer deliveryType;
}
